package com.example.demo.thread.state;

/**
 * @Author: liull
 * @Description:
 * @Date: Created in 14:12 2020/5/29
 * @Modified By:
 */
public class MyThread2 extends Thread {
    @Override
    public void run() {
        while (true) {
            //do something
//            System.out.println("loop");
           /* try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }*/
        }
    }
}
